|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
september 2013 doc id 023294 rev 2 1/32 AN4124 application note using spc56el60x fault collection and control unit (fccu) introduction this application note describes in detail how to use the main features of the spc56el60x fault collection and cont rol unit module (fccu). the fault collection and control unit offers a redundant hardware channel to collect errors and, as soon as a failure is detected, to lead the device to a safety state in a controlled way. no cpu intervention is required for collection and control operation. the fccu circuitry is checked at start-up (aft er boot) by the self-checking procedure. the fccu is operative with a default configuration (without cpu intervention) immediately after the completion of the self-checking procedure. two classes of faults are identified based on the criticity and the related reactions. internal (that is, short or long functional reset, interrupt request) and external (eout signaling) reactions are statically defined or programmable based on the fault criticity. the default configuration can be modified only in a specific fccu state for application/test/debugging purposes. www.st.com
contents AN4124 2/32 doc id 023294 rev 1 contents 1 fccu main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 hw/sw recoverability fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 fault dual path: fccu and rgm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.1 rgm module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 fault: cf and ncf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1 critical fault (cf) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.2 non-critical fault (ncf) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 5 fccu settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5.1 example 1: fccu critical fault injection (no nmi assertion) . . . . . . . . . . . 13 5.1.1 fccu init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5.2 example 2: fccu critical fault injection (nmi assertion) . . . . . . . . . . . . . 15 5.2.1 fccu init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.3 example 3: fccu - non-critical fault injection . . . . . . . . . . . . . . . . . . . . . 16 5.4 lock fccu configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.5 hardware: xpc56xl minimodule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 appendix a redundancy and functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 a.1 path redundancy on critical error reaction. . . . . . . . . . . . . . . . . . . . . . . . . 19 a.2 general purpose function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 a.2.1 config state. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 a.2.2 normal state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 a.2.3 lock fccu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 a.2.4 read status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 a.2.5 clear fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 a.2.6 clear all critical faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 a.2.7 clear all non-critical faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 a.2.8 read fccu - state machine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 a.2.9 non-critical fault - enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 a.2.10 ncf - normal to alarm - read state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 a.2.11 ncf - normal to alarm - clear state . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 AN4124 contents doc id 023294 rev 1 3/32 a.2.12 irq status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 a.3 general purpose functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 a.3.1 example n1: fake ncf by external irq . . . . . . . . . . . . . . . . . . . . . . . . . 26 a.3.2 example n2: fake cf by external irq . . . . . . . . . . . . . . . . . . . . . . . . . . 28 appendix b further information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 b.1 acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 list of tables AN4124 4/32 doc id 023294 rev 1 list of tables table 1. rgm_fes register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2. critical fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 3. non-critical fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4. acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 5. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 AN4124 list of figures doc id 023294 rev 1 5/32 list of figures figure 1. fccu state machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 figure 2. xpc56el minimodule. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 figure 3. dual path faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 figure 4. rgm/fccu ? no dual path faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 figure 5. rgm/fccu ? dual path faults (criti cal faults) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 6. rgm/fccu ? dual path faults (non- critical faults) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 7. xpc56xxmb mother board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 8. ncf injection flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 figure 9. cf injection flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 fccu main features AN4124 6/32 doc id 023294 rev 2 1 fccu main features the fccu features are: the fault control and collection unit (fccu) is a hardware ip providing a central capability to control and collect faults reported by individual modules of the soc. faults are reported to the outside world via output pin(s), if no recovery is provided by soc. no internal actions (such as irq, reset) can be taken. the operation of the fault collection unit is independent of the cpu, so the fccu provides a fault reporting mechanism even if the cpu is malfunctioning. the fault control and collection unit is developed specifically to increase the level of the safety of the system and ecu . the fccu allows a redundant path to the rgm to enter failsafe mode in case of error. below figure 1 fccu-sm (state machine): figure 1. fccu state machine & |